package com.googlecode.tapestry5validator.hibernate.adapters;

import java.lang.annotation.Annotation;

import org.hibernate.validator.Min;

public class MinAdapter extends ValueAdapter {
	
	@Override
	public Class<? extends Annotation> getAnnotationClass() {
		return Min.class;
	}

	@Override
	public String getJSMethod() {
		// reuse tapestry
		return "min";
	}

	@Override
	public String getValidatorType() {
		return "hv-min";
	}

}
